package com.itheima.recommend.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class RabbitConfig {

    public final static String QUEUE_HISTORY = "queue_history";

    @Bean
    public Queue queue() {
        return new Queue(QUEUE_HISTORY);
    }

}
